using FluentNHibernate.Mapping;
using UserManagement.DomainEntity;

namespace UserManagement.Dal.NH.Mappings
{
    public class UserAccountMap : ClassMap<UserAccount>
    {
        public UserAccountMap()
        {
            Table("UserAccounts");
            Id(x => x.Id).GeneratedBy.Native();
            Map(x => x.Name).Not.Nullable();
            Map(x => x.Password);
            References(x => x.Contact).Column("UserContactId").Not.Nullable();
            //HasMany(x => x.Circles);
        }
    }
}